
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '特殊类目',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'bh_ead87ec3_kecu',
        name: "{{bh_ead87ec3_kecu}}",
        binding: 'bh',
        updateOn: 'blur',
        defaultI18nValue: '编号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    bh: FormControl;

    @NgFormControl({
        id: 'mc_afc2d441_scyk',
        name: "{{mc_afc2d441_scyk}}",
        binding: 'mc',
        updateOn: 'blur',
        defaultI18nValue: '名称',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    mc: FormControl;

    @NgFormControl({
        id: 'yy_7e21fe8a_grph',
        name: "{{yy_7e21fe8a_grph}}",
        binding: 'yy',
        updateOn: 'blur',
        defaultI18nValue: '原因',
    })
    yy: FormControl;

    @NgFormControl({
        id: 'bz_c8f86c61_26i2',
        name: "{{bz_c8f86c61_26i2}}",
        binding: 'bz',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    bz: FormControl;

}